<?php

namespace app\admin\validate\dealer;

use app\common\validate\BaseValidate;

class DealerAccount extends BaseValidate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'name|账户姓名' => 'require|min:2|max:255',
        'bank_card|收款账号'=> 'require|min:5',
        'mobile|预留手机号' => 'require|isMobile',
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['name', 'mobile', 'bank_card'],
        'edit' => ['name', 'mobile', 'bank_card'],
    ];
    
}
